package com.jinyang.jetpackdemo.hilt

import androidx.lifecycle.MutableLiveData
import com.jinyang.jetpackdemo.paging3.ApiService
import com.jinyang.jetpackdemo.paging3.RepoList
import javax.inject.Inject

/**
 * @Author:         LiuJinYang
 * @CreateDate:     2021/8/25
 * @Description: 仓库层
 */
class Repository @Inject constructor() {
    @Inject
    lateinit var apiService: ApiService
    suspend fun getData(userId: MutableLiveData<String>): RepoList {
        return apiService.searRepos(1, 5)
    }
}

